package com.lianxi

/**
  * Created by adengdeng on 2017/8/8 
  */
object Lx8 {

  def minmax(values: Array[Int]) = {
    (values.min, values.max)
  }
  def main(args: Array[String]): Unit = {
    val a = Array(1,2,3)

    println(minmax(a))
  }
}
